﻿using Abp.Application.Services.Dto;
using AppFramework.ApiClient;
using AppFramework.DinosaursParkMes.Execute.Dto;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace AppFramework.DinosaursParkMes.Execute
{
    public class ExecuteScheduleAppService : ProxyAppServiceBase, IExecuteScheduleAppService
    {
        public ExecuteScheduleAppService(AbpApiClient apiClient) : base(apiClient)
        {

        }
        /// <summary>
        /// 执行进度列表
        /// </summary>
        /// <returns></returns>
        /// 
        public async Task<ListResultDto<ExecuteDto>> GetExecutes()
        {
            return await ApiClient.GetAsync<ListResultDto<ExecuteDto>>(GetEndpoint(nameof(GetExecutes)));

        }
    }
}
